package com.ruoyi.food.service.impl;

import com.ruoyi.food.domain.StatisticsDTO;
import com.ruoyi.food.domain.vo.StatisticsVO;
import com.ruoyi.food.mapper.StatisticsMapper;
import com.ruoyi.food.service.IStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IStatisticsServiceImpl implements IStatisticsService {

    @Autowired
    private StatisticsMapper statisticsMapper;

    @Override
    public List<StatisticsDTO> getStockList(StatisticsVO params) {
        return statisticsMapper.getStockList(params);
    }

    @Override
    public List<StatisticsDTO> getEntryPriceStat(StatisticsVO params) {
        return statisticsMapper.getEntryPriceStat((params));
    }

    @Override
    public List<StatisticsDTO> getOutPriceStat(StatisticsVO params) {
        return statisticsMapper.getOutPriceStat((params));
    }

    @Override
    public List<StatisticsDTO> getByDateStat(StatisticsVO params) {
        return statisticsMapper.getByDateStat((params));
    }


}
